package com.learn.dubbo.client;

import com.learn.api.IDemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @auther liuhw
 * @date 2019/11/19 17:46
 * @description: dubbo 消费者启动类
 * @since 1.0
 **/
public class ClientDemoMain {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("demo-client.xml");
        context.start();
        IDemoService demoService = (IDemoService) context.getBean("demoService");
        System.out.println(demoService.sayHello("World"));
    }
}
